package com.yd.sinjutech.test;

import static org.junit.Assert.*;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

import com.yd.sinjutech.entity.Login;
import com.yd.sinjutech.mapper.UseableMapper;
import com.yd.sinjutech.service.LoginService;


@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration("classpath:applicationContext.xml")
public class LoginServiceTset {

	
	@Autowired
	LoginService loginService;
	
	@Test
	public void test() {
		Login login = new Login();
		login.setLogin("user");
		login.setPassword("user");
		System.out.println(loginService.login(login));
	}
	
	@Test
	public void testGetUrls(){
		System.out.println(loginService.getUrls(2));
	}

}
